/*
 * @Author: hkk 2812877145@qq.com
 * @Date: 2023-05-23 15:38:12
 * @LastEditors: hkk 2812877145@qq.com
 * @LastEditTime: 2023-05-23 15:51:45
 * @FilePath: \hello-word\src\unit\error\index.js
 * @Description: 公共错误提示框
 * Copyright (c) 2023 by hkk, All Rights Reserved. 
 */
import { Notification } from 'element-ui';

export const notify = (type, e) => Notification({
  title: type == 'success'?'成功':'错误',
  type: `${type}`,
  message: `${e}`,
  position: 'top-right',
  duration: 3000,
  offset: 200,
});

export default notify